Basic Library for WinRT
SetBinding<T>(FrameworkElement,DependencyProperty,T,Expression<Func<T,Object>>) Method

Type of the source
The target.
The dependency property which will be set.
The source.
Expression that returns a property of the source object.
Sets the binding if the dependency property has not been set previously and the style of the element don't set the property.
Syntax
'Declaration
 
Public Overloads Shared Sub SetBinding(Of T)( _
   ByVal target As Windows.UI.Xaml.FrameworkElement, _
   ByVal dp As Windows.UI.Xaml.DependencyProperty, _
   ByVal source As T, _
   ByVal expr As System.Linq.Expressions.Expression(Of Func(Of T,Object)) _
) 
public static void SetBinding<T>( 
   Windows.UI.Xaml.FrameworkElement target,
   Windows.UI.Xaml.DependencyProperty dp,
   T source,
   System.Linq.Expressions.Expression<Func<T,object>> expr
)

Parameters

target
The target.
dp
The dependency property which will be set.
source
The source.
expr
Expression that returns a property of the source object.

Type Parameters

T
Type of the source
See Also

Reference

Extensions Class
Extensions Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback